
Aspect ratio: 16:9
Hero image final size: 1920*1080


Recreate hero image with aspect ratio.
Get number of smaller images

100 images

100*100

9*6 = 54


1920/100 = 19.2
1080/100 = 10.8





100 / 6 = 16.666

1080/6 = 180

180 / 9 = 200


96
6
16:1



1080/9 = 120
1920/16 = 120


100*100
19.2 across with x of 100
10.8 up with x of 100


120*180

1920/180 = 10.6666
1080/120 = 9

2,073,600

120*120 = 14400

14400 * 50 = 720000

2,073,600 / 720,000 = 2.88

120*2.88 = 345.6

345*345 = 119439.36



((hH*hW)/50)^2
(iH*iW)


Hero into slaves

100*100
sample image no = 20
100*100 = 10,000

10,000/20 = 500
sqrt(500) = 22(rounded down)

22*22 = 484
484*20 = 9680
remainder = 320








21/1/2013

9
0=1
1=3
2=9

400
300

floor($x/100) = 4
floor($y/100) = 3


6
0=1
1=2
2=3
3=6



12

1
2
3
4
6
12


100/120 = 0.83

1/12 = 0.083
2/6 = 0.33
3/4 = 0.75

120/100 = 1.2

12/1 = 12
6/2 = 3
4/3 = 1.33

also need a close enough script, as below

440
320

43
1, 43

440/320 = 1.375
320/440 = 0.72

43/1 = 43
1/43 = 0.02

42
1, 2, 3, 6, 7, 14, 21, 42

1/42 = 0.02
2/21 = 0.95
3/14 = 0.21
6/7 = 0.85

42/1 = 42
21/2 = 10.5
14/3 = 4.66
7/6 = 1.66

1200
2100

40
1, 2, 4, 5, 8, 10, 20, 40

1200/2100 = 0.57
2100/1200 = 1.75

1/40 = 0.025
2/20 = 0.1
4/10 = 0.4
5/8 = 0.625


900
100

900/100 = 9
100/900 = 0.11

9
1,3,9

1/9 = 0.11
3/3 = 1

9/1 = 3

22
1, 2, 3, 4, 6, 8, 12, 24

1/24 = 0.04
2/12 = 0.16
3/8 = 0.375
4/6 = 0.66

20
1, 2, 4, 5, 10, 20

1/2 = 0.5
2/10 = 0.2
4/5 = 0.8


5:1
2500/500 = 5
5*100 = 500
500 * 1 = 500
= 5:1

3600
1200
3600/1200 = 3
3*100 = 300
300*4 = 12000
4:3

1250
360
1250/360 = 3.472
360/3.472 = 103.68

1280
320
1280/320 = 4











1/9 = 0.11
3/3 = 1

9/1 = 3

22
1, 2, 3, 4, 6, 8, 12, 24

1/24 = 0.04
2/12 = 0.16
3/8 = 0.375
4/6 = 0.66

20
1, 2, 4, 5, 10, 20

1/2 = 0.5
2/10 = 0.2
4/5 = 0.8



1200/400 = 3
4:1

1,2,3,4,6,8,12,24
1/24 = 0.04
2/12 = 0.16
3/8 = 0.375
8:3
4:1.5
4/6 = 0.66
3:2





1420
780


780/1420 = 0.549
1:<2

16
1, 2, 4, 8, 16

1/16 = 0.06
2/8 = 0.25
1:4
4/4 = 1
1:1


15
1, 3, 5, 15
1/15 = 0.066
3/5 = 0.6
1.5:2.5

14
1, 2, 7, 14
1/14 = 0.07
2/7 = 0.28





